<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .text {
            font-size: 24px;
            color: blueviolet;
            width: 100px;
            height: 100px;
            background-color: pink;
        }
        .header {
            width: 900px;
            padding: 0 auto;
            height: 80px;
            background-color: wheat;
            border: 2px solid red;
        }
    </style>
</head>
<body>
    <div class="header">
        这是header 哟哟哟哟
    </div>
    <div class="text">哈哈哈</div>
    <p>这是老王的</p>
</body>
</html>